package com.anjubao.parking.municipal.user.model;

import com.anjubao.parking.municipal.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 用户信息表
 *
 * @author zhuchunfeng
 */
@Getter
@Setter
@TableName("user_info")
@ApiModel(value="UserInfo",description = "用户信息表")
@Accessors(chain = true)
public class UserInfo extends BaseEntity<UserInfo>{

    @TableField(value="id")
    @ApiModelProperty(name="id",value = "用户ID，必须为16位长度")
    private Long id;

    @TableField(value="phone")
    @ApiModelProperty(name="phone",value = "用户手机号")
    private String phone;

    @TableField(value="name")
    @ApiModelProperty(name="name",value = "真实姓名")
    private String name;

    @TableField(value="id_card")
    @ApiModelProperty(name="idCard",value = "身份证号")
    private String idCard;

    @TableField(value="balance")
    @ApiModelProperty(name="balance",value = "帐户余额")
    private Integer balance;

    @TableField(value="nick_name")
    @ApiModelProperty(name="nickName",value = "用户昵称")
    private String nickName;

    @TableField(value="avatar")
    @ApiModelProperty(name="avatar",value = "用户头像地址")
    private String avatar;

    @TableField(value="wx_nickname")
    @ApiModelProperty(name="wxNickname",value = "微信昵称")
    private String wxNickname;

    @TableField(value="union_id")
    @ApiModelProperty(name="unionId",value = "unionid")
    private String unionId;

    @TableField(value="minapp_openid")
    @ApiModelProperty(name="minappOpenid",value = "小程序openid")
    private String minappOpenid;

    @TableField(value="wc_openid")
    @ApiModelProperty(name="wcOpenid",value = "公众号openid")
    private String wcOpenid;

}